home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / swingall.jar / javax / swing / text / StyleContext$KeyEnumeration.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-07-15  |  845 b   |  33 lines

  1. package javax.swing.text;
  2.  
  3. import java.util.Enumeration;
  4. import java.util.NoSuchElementException;
  5.  
  6. class StyleContext$KeyEnumeration implements Enumeration {
  7.    // $FF: synthetic field
  8.    private final StyleContext this$0;
  9.    Object[] attr;
  10.    // $FF: renamed from: i int
  11.    int field_0;
  12.  
  13.    StyleContext$KeyEnumeration(StyleContext var1, Object[] var2) {
  14.       this.this$0 = var1;
  15.       this.attr = var2;
  16.       this.field_0 = 0;
  17.    }
  18.  
  19.    public boolean hasMoreElements() {
  20.       return this.field_0 < this.attr.length;
  21.    }
  22.  
  23.    public Object nextElement() {
  24.       if (this.field_0 < this.attr.length) {
  25.          Object var1 = this.attr[this.field_0];
  26.          this.field_0 += 2;
  27.          return var1;
  28.       } else {
  29.          throw new NoSuchElementException();
  30.       }
  31.    }
  32. }
  33.